<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  <script type="text/javascript">
  	function ti(){
  		var form = document.getElementById('first');
  		form.submit();
  	}
  </script>
  <body>
    <form action="<%=basePath %>fang.action" id='first' method="post">
    	<button text="点" value="点1">点2</button>
	    <input type="button" text="点"value="提交" onclick=ti()></input></br>
	    <table>
	    	<tr><td>价格：</td><td><input type ="text" name="fang.jiage"/></td></tr>
	    	<tr><td>楼层：</td><td><input type ="text" name="fang.louceng"/></td></tr>
	    	<tr><td>朝向：</td><td><input type ="text" name="fang.chaoxiang"/></td></tr>
	    	<tr><td>所带东西：</td><td><input type ="text" name="fang.dongxi"/></td></tr>
	    	<tr><td>所在区：</td><td><input type ="text" name="fang.qu"/></td></tr>
	    	<tr><td>地址：</td><td><input type ="text" name="fang.weizhi"/></td></tr>
	    	<tr><td>小区名：</td><td><input type ="text" name="fang.xiaoqu"/></td></tr>
	    </table>
    </form>
  </body>
</html>
